Alternating permutation